<?php

/**
 * Language.php
 *
 * Holds class Language
 *
 * @package Library
 */

/**
 * Language
 *
 * Language management
 *
 * @package Library
 */
class Language extends Config {

	/**
	 * Language path
	 * @var string $_path
	 */
	protected $_path = '';

	/**
	 * Sets language path
	 *
	 * @param string $path
	 * @return Language (fluent interface)
	 */
	public function setLanguagePath($path) {
		$this->_path = rtrim($path, '\\/') . '/';
		return $this;
	}
	
	public function setLanguage(){
		
	}

	/**
	 * Imports configuration file
	 *
	 * @see Config::import()
	 * @param string $file
	 * @throws Exception
	 * @return Config (fluent interface)
	 */
	public function import($file) {
		$file = $this->_path . $file;
		return parent::import($file);
	}
}
